package net.entelijan.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public abstract class CobeanConfigFactory {

	private CobeanConfigFactory() {
		super();
	}

	public static ICobeanConfig createConfig() {
		ApplicationContext ctx = new ClassPathXmlApplicationContext(
				"cobean-config-ctx.xml");
		return (ICobeanConfig) ctx.getBean("config1");
	}

}
